import http from '@/utils/index'

// 关于学校信息的接口 
class Center {
    // 新增
    createContent(reload) {
        let url = '/center/create';
        return http.post(url, reload)
    }
    // 编辑
    editContent(reload) {
        let url = '/center/edit';
        return http.post(url, reload)
    }

    // 详情 detail 参数 id
    getContentDetail(reload) {
        let url = '/center/detail';
        return http.get(url, reload)
    }

    // 更新唯一字段
    updateOnlyfield(reload) {
        let url = '/center/onlyfield';
        return http.post(url, reload)
    }
}

export default new Center()